﻿using System.Threading.Tasks;
using Microsoft.AspNet.SignalR;
using System.Linq;
using ProjectBordspil.Models;

/// <summary>
/// Chat kóði fengin frá http://www.asp.net/signalr/overview/getting-started/tutorial-getting-started-with-signalr
/// </summary>
namespace ProjectBordspil.Controllers
{
    public class ChatHub : Hub
    {
        /// <summary>
        /// Calls the BroadCastMessage method to update all clients
        /// </summary>
        public void Send(string name, string message)
        {
            Clients.All.BroadCastMessage(name, message);
        }

    }
}